<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<!--内部样式表-->
	    <!--只对块级元素有用-->
		<style>
			.title{
				color: lightblue;
				width: 80%;/*占整个页面的*/
				height: 200px;
				background-color:lavenderblush ;
			}
			span{  /*span行级标签，设置宽高无效*/
				color: blue;
				width: 200px;
				height: 40px;
				background-color: greenyellow;
			}
		</style>
	</head>
	<body>
		<h2 class="title">静夜思<span>李白</span></h2>
	</body>
</html>
